/**
 * 
 */
package com.seraph.zys.web.pccexport;

import java.util.HashMap;
import java.util.Map;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.servlet.ModelAndView;
import org.springframework.web.servlet.mvc.AbstractController;

import com.seraph.bi.suite.support.security.BaseUser;
import com.seraph.bi.suite.support.security.LoginUtil;
import com.seraph.bi.suite.support.web.base.BaseHelper;
import com.seraph.zys.dao.ScOrgDAO;
import com.seraph.zys.dao.domain.ScOrg;

/**
 * 类说明:<br>
 * 创建时间: <br>
 * @author <br>
 * @email:<br>
 */
 
@Controller
@RequestMapping("/viewAllFundsArrangementList.do")
public class ViewAllFundsArrangementListController extends AbstractController {

	@Autowired
	private ScOrgDAO scOrgDAO;

	public void setScOrgDAO(ScOrgDAO scOrgDAO) {
		this.scOrgDAO = scOrgDAO;
	}	
	
	@RequestMapping(method = { RequestMethod.POST })
	protected ModelAndView handleRequestInternal(HttpServletRequest request,
			HttpServletResponse response) throws Exception {

		BaseUser user = (BaseUser) LoginUtil.getUser();
		ScOrg scOrg = scOrgDAO.selectByOrgCode(user.getOrgCode());		
		Map<String, String> map = new HashMap<String, String>();
		map.put("parms", BaseHelper.createTransParm(request));
		map.put("orgLevel", scOrg.getOrgLevel().toString());
		return new ModelAndView("/platform/pccexport/viewAllFundsArrangementList", map);
	}
}